﻿using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;

using SB.Logging;

namespace SB.MediaLibrary.Entities
{
    /// <summary>
    /// Film object for NHibernate mapped table Film.
    /// </summary>
    public class Filmrolle
    {
        #region Private Fields
        private static readonly ILogger log = LoggingFacade.GetLogger(typeof(Film));

        private Guid _GUID;
        private Schauspieler _Schauspieler;
        private Film _Film;
        #endregion //Private Fields

        #region Public Properties

        public virtual Guid GUID
        {
            get { return _GUID; }
            set { _GUID = value; }
        }

        public virtual Schauspieler Schauspieler
        {
            get { return _Schauspieler; }
            set { _Schauspieler = value; }
        }

        public virtual Film Film
        {
            get { return _Film; }
            set { _Film = value; }
        }

        #endregion //Public Properties

        #region User Generated Code

        #endregion // User Generated Code

        #region Equals and GetHashCode
        public override bool Equals(object obj)
        {
            if (obj is Filmrolle)
            {
                Filmrolle a = (Filmrolle)obj;
                if (a.GUID == GUID)
                    return true;
            }
            return false;
        }
        public override int GetHashCode()
        {
            return GUID.GetHashCode();
        }
        #endregion //Equals and GetHashCode
    }
}